package m2.port;

import java.util.Observable;

import m2.links.Attachment;

public class Port extends Observable{

	private String portValue;
	private String type;
	private String owner;
		
	/**
	 * 
	 * @param portValue
	 */
	public void activatePort(String portValue){
		this.portValue = portValue;
		setChanged();
		notifyObservers(this.portValue);
	}
		
	/**
	 * 
	 * @return
	 */
	public final String getOwner() {
		return owner;
	}
	
	/**
	 * 
	 * @param owner
	 */
	public final void setOwner(String owner) {
		this.owner = owner;
	}
	
	/**
	 * 
	 * @param portValue
	 */
	public final void setPortValue(String portValue) {
		this.portValue = portValue;
	}
	
	/**
	 * 
	 * @return
	 */
	public final String getPortValue() {
		return portValue;
	}
	
	/**
	 * 
	 * @return
	 */
	public final String getType() {
		return type;
	}

	/**
	 * 
	 * @param type
	 */
	public void setType(String type) {
		this.type = type;
	}
	
	/**
	 * 
	 * @param attachment
	 */
	public void observBy(Attachment attachment){
		addObserver(attachment);
	}
	
}
